package com.attendance.www.hr.entitys;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class AccessInvalidLogsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AccessInvalidLogsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andInvalidLogsIdIsNull() {
            addCriterion("invalid_logs_id is null");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsIdIsNotNull() {
            addCriterion("invalid_logs_id is not null");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsIdEqualTo(Integer value) {
            addCriterion("invalid_logs_id =", value, "invalidLogsId");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsIdNotEqualTo(Integer value) {
            addCriterion("invalid_logs_id <>", value, "invalidLogsId");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsIdGreaterThan(Integer value) {
            addCriterion("invalid_logs_id >", value, "invalidLogsId");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("invalid_logs_id >=", value, "invalidLogsId");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsIdLessThan(Integer value) {
            addCriterion("invalid_logs_id <", value, "invalidLogsId");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsIdLessThanOrEqualTo(Integer value) {
            addCriterion("invalid_logs_id <=", value, "invalidLogsId");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsIdIn(List<Integer> values) {
            addCriterion("invalid_logs_id in", values, "invalidLogsId");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsIdNotIn(List<Integer> values) {
            addCriterion("invalid_logs_id not in", values, "invalidLogsId");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsIdBetween(Integer value1, Integer value2) {
            addCriterion("invalid_logs_id between", value1, value2, "invalidLogsId");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("invalid_logs_id not between", value1, value2, "invalidLogsId");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsDateIsNull() {
            addCriterion("invalid_logs_date is null");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsDateIsNotNull() {
            addCriterion("invalid_logs_date is not null");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsDateEqualTo(Date value) {
            addCriterionForJDBCDate("invalid_logs_date =", value, "invalidLogsDate");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("invalid_logs_date <>", value, "invalidLogsDate");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsDateGreaterThan(Date value) {
            addCriterionForJDBCDate("invalid_logs_date >", value, "invalidLogsDate");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("invalid_logs_date >=", value, "invalidLogsDate");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsDateLessThan(Date value) {
            addCriterionForJDBCDate("invalid_logs_date <", value, "invalidLogsDate");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("invalid_logs_date <=", value, "invalidLogsDate");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsDateIn(List<Date> values) {
            addCriterionForJDBCDate("invalid_logs_date in", values, "invalidLogsDate");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("invalid_logs_date not in", values, "invalidLogsDate");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("invalid_logs_date between", value1, value2, "invalidLogsDate");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("invalid_logs_date not between", value1, value2, "invalidLogsDate");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsAddressIsNull() {
            addCriterion("invalid_logs_address is null");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsAddressIsNotNull() {
            addCriterion("invalid_logs_address is not null");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsAddressEqualTo(String value) {
            addCriterion("invalid_logs_address =", value, "invalidLogsAddress");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsAddressNotEqualTo(String value) {
            addCriterion("invalid_logs_address <>", value, "invalidLogsAddress");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsAddressGreaterThan(String value) {
            addCriterion("invalid_logs_address >", value, "invalidLogsAddress");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsAddressGreaterThanOrEqualTo(String value) {
            addCriterion("invalid_logs_address >=", value, "invalidLogsAddress");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsAddressLessThan(String value) {
            addCriterion("invalid_logs_address <", value, "invalidLogsAddress");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsAddressLessThanOrEqualTo(String value) {
            addCriterion("invalid_logs_address <=", value, "invalidLogsAddress");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsAddressLike(String value) {
            addCriterion("invalid_logs_address like", value, "invalidLogsAddress");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsAddressNotLike(String value) {
            addCriterion("invalid_logs_address not like", value, "invalidLogsAddress");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsAddressIn(List<String> values) {
            addCriterion("invalid_logs_address in", values, "invalidLogsAddress");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsAddressNotIn(List<String> values) {
            addCriterion("invalid_logs_address not in", values, "invalidLogsAddress");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsAddressBetween(String value1, String value2) {
            addCriterion("invalid_logs_address between", value1, value2, "invalidLogsAddress");
            return (Criteria) this;
        }

        public Criteria andInvalidLogsAddressNotBetween(String value1, String value2) {
            addCriterion("invalid_logs_address not between", value1, value2, "invalidLogsAddress");
            return (Criteria) this;
        }

        public Criteria andErrorMessageIsNull() {
            addCriterion("error_message is null");
            return (Criteria) this;
        }

        public Criteria andErrorMessageIsNotNull() {
            addCriterion("error_message is not null");
            return (Criteria) this;
        }

        public Criteria andErrorMessageEqualTo(String value) {
            addCriterion("error_message =", value, "errorMessage");
            return (Criteria) this;
        }

        public Criteria andErrorMessageNotEqualTo(String value) {
            addCriterion("error_message <>", value, "errorMessage");
            return (Criteria) this;
        }

        public Criteria andErrorMessageGreaterThan(String value) {
            addCriterion("error_message >", value, "errorMessage");
            return (Criteria) this;
        }

        public Criteria andErrorMessageGreaterThanOrEqualTo(String value) {
            addCriterion("error_message >=", value, "errorMessage");
            return (Criteria) this;
        }

        public Criteria andErrorMessageLessThan(String value) {
            addCriterion("error_message <", value, "errorMessage");
            return (Criteria) this;
        }

        public Criteria andErrorMessageLessThanOrEqualTo(String value) {
            addCriterion("error_message <=", value, "errorMessage");
            return (Criteria) this;
        }

        public Criteria andErrorMessageLike(String value) {
            addCriterion("error_message like", value, "errorMessage");
            return (Criteria) this;
        }

        public Criteria andErrorMessageNotLike(String value) {
            addCriterion("error_message not like", value, "errorMessage");
            return (Criteria) this;
        }

        public Criteria andErrorMessageIn(List<String> values) {
            addCriterion("error_message in", values, "errorMessage");
            return (Criteria) this;
        }

        public Criteria andErrorMessageNotIn(List<String> values) {
            addCriterion("error_message not in", values, "errorMessage");
            return (Criteria) this;
        }

        public Criteria andErrorMessageBetween(String value1, String value2) {
            addCriterion("error_message between", value1, value2, "errorMessage");
            return (Criteria) this;
        }

        public Criteria andErrorMessageNotBetween(String value1, String value2) {
            addCriterion("error_message not between", value1, value2, "errorMessage");
            return (Criteria) this;
        }

        public Criteria andEmailInformationIsNull() {
            addCriterion("email_information is null");
            return (Criteria) this;
        }

        public Criteria andEmailInformationIsNotNull() {
            addCriterion("email_information is not null");
            return (Criteria) this;
        }

        public Criteria andEmailInformationEqualTo(String value) {
            addCriterion("email_information =", value, "emailInformation");
            return (Criteria) this;
        }

        public Criteria andEmailInformationNotEqualTo(String value) {
            addCriterion("email_information <>", value, "emailInformation");
            return (Criteria) this;
        }

        public Criteria andEmailInformationGreaterThan(String value) {
            addCriterion("email_information >", value, "emailInformation");
            return (Criteria) this;
        }

        public Criteria andEmailInformationGreaterThanOrEqualTo(String value) {
            addCriterion("email_information >=", value, "emailInformation");
            return (Criteria) this;
        }

        public Criteria andEmailInformationLessThan(String value) {
            addCriterion("email_information <", value, "emailInformation");
            return (Criteria) this;
        }

        public Criteria andEmailInformationLessThanOrEqualTo(String value) {
            addCriterion("email_information <=", value, "emailInformation");
            return (Criteria) this;
        }

        public Criteria andEmailInformationLike(String value) {
            addCriterion("email_information like", value, "emailInformation");
            return (Criteria) this;
        }

        public Criteria andEmailInformationNotLike(String value) {
            addCriterion("email_information not like", value, "emailInformation");
            return (Criteria) this;
        }

        public Criteria andEmailInformationIn(List<String> values) {
            addCriterion("email_information in", values, "emailInformation");
            return (Criteria) this;
        }

        public Criteria andEmailInformationNotIn(List<String> values) {
            addCriterion("email_information not in", values, "emailInformation");
            return (Criteria) this;
        }

        public Criteria andEmailInformationBetween(String value1, String value2) {
            addCriterion("email_information between", value1, value2, "emailInformation");
            return (Criteria) this;
        }

        public Criteria andEmailInformationNotBetween(String value1, String value2) {
            addCriterion("email_information not between", value1, value2, "emailInformation");
            return (Criteria) this;
        }

        public Criteria andEmailStateIsNull() {
            addCriterion("email_state is null");
            return (Criteria) this;
        }

        public Criteria andEmailStateIsNotNull() {
            addCriterion("email_state is not null");
            return (Criteria) this;
        }

        public Criteria andEmailStateEqualTo(Integer value) {
            addCriterion("email_state =", value, "emailState");
            return (Criteria) this;
        }

        public Criteria andEmailStateNotEqualTo(Integer value) {
            addCriterion("email_state <>", value, "emailState");
            return (Criteria) this;
        }

        public Criteria andEmailStateGreaterThan(Integer value) {
            addCriterion("email_state >", value, "emailState");
            return (Criteria) this;
        }

        public Criteria andEmailStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("email_state >=", value, "emailState");
            return (Criteria) this;
        }

        public Criteria andEmailStateLessThan(Integer value) {
            addCriterion("email_state <", value, "emailState");
            return (Criteria) this;
        }

        public Criteria andEmailStateLessThanOrEqualTo(Integer value) {
            addCriterion("email_state <=", value, "emailState");
            return (Criteria) this;
        }

        public Criteria andEmailStateIn(List<Integer> values) {
            addCriterion("email_state in", values, "emailState");
            return (Criteria) this;
        }

        public Criteria andEmailStateNotIn(List<Integer> values) {
            addCriterion("email_state not in", values, "emailState");
            return (Criteria) this;
        }

        public Criteria andEmailStateBetween(Integer value1, Integer value2) {
            addCriterion("email_state between", value1, value2, "emailState");
            return (Criteria) this;
        }

        public Criteria andEmailStateNotBetween(Integer value1, Integer value2) {
            addCriterion("email_state not between", value1, value2, "emailState");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}